/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout/index.vue'

const alarmRouter = [
  {
    path: '/alarm',
    component: Layout,
    redirect: '/alarm/generalInformation',
    name: 'alarm',
    meta: {
      title: '报警管理',
      icon: 'School',
    },
    children: [
      {
        path: '/alarm/generalInformation',
        component: () => import('@/views/alarm/generalInformation/index.vue'),
        name: 'generalInformation',
        meta: { title: '报警基本信息', keepAlive: true, icon: 'MenuIcon' },
      },
      {
        path: '/alarm/managementCenter',
        component: () => import('@/views/alarm/managementCenter/index.vue'),
        name: 'managementCenter',
        meta: { title: '管理中心', keepAlive: true, icon: 'MenuIcon' },
      },
    ],
  },
]

export default alarmRouter
